package com.cai.dao;



import com.cai.pojo.Permission;
import com.github.pagehelper.Page;

import java.util.List;

public interface PermissionDao {

    public Permission findPermissionById(Integer permissionId);
    //分页查询权限
    public Page<Permission> selectByCondition(String queryString);
    //删除权限
    public void deleteById(Integer id);
    //添加权限
    public void add(Permission permission);
    //根据id查询权限
    public Permission findById(Integer id);
    //编辑权限
    public void edit(Permission permission);
    //查询所有权限
    public List<Permission> findAll();
    //查询权限是否关联中间表
    public long findPermissionAndRole(Integer id);
    //清除中间表关联
    public void deleteAssociation(Integer id);
}
